#ifndef __T_CONFIG_PARSE_H
#define __T_CONFIG_PARSE_H

#include <stdint.h>
#include "userLog.h"
#include "uv.h"
#include "CxlUtil.h"

#define CheDaoJi_No_Len 12
typedef struct
{
    uint8_t VZ_CAM_IP[32];
    uint8_t remark[256];
    uint8_t VZ_ID;
    uint16_t VZ_CAM_PORT;
    uint8_t CALIBRATION;
} VzCamInfoStruct;

typedef struct QxConfig_
{
    char qx_user[64];
    char qx_password[64];
    char qx_service_name[128];
    unsigned short qx_port;
    unsigned int qx_report_interval;
} QxConfig;
QxConfig *get_qx_config();

typedef struct uploadPicConfig_
{
    double speed;
    unsigned int keep_time;
    unsigned int max_pic_number;
    double calibration_dua; //标定差值.
} uploadPicConfig;

uploadPicConfig *get_upload_pic_config();

void load_cfg();
uint8_t *getRemoteServIp();
uint16_t getRemoteServPort();
uint8_t *getChedaojiNo();
uint32_t getParkId();
uint8_t getCameraNum();
VzCamInfoStruct *getCameraInfo();
uint8_t *getWiFiSsid();
uint8_t *getWiFiPwd();

void startWatchRemoteCfg();
#endif